package com.daka.dao;


import com.daka.entity.ActivitySignRecord;
import com.daka.mybatis.SQLMapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository(value = "activitySignRecordDao")
@SQLMapper
public interface ActivitySignRecordDao {
    int deleteByPrimaryKey(Integer id);

    int insert(ActivitySignRecord record);

    ActivitySignRecord selectByPrimaryKey(Integer id);

    List<ActivitySignRecord> selectByStatement(ActivitySignRecord record);

    int selectByStatementCount(ActivitySignRecord record);

    int updateByPrimaryKeySelective(ActivitySignRecord record);

    List<ActivitySignRecord> findByActivityAndVolunteer(@Param("activityId") Long activityId,@Param("volunteerId") Long volunteerId);
}